package com.zs.pojo;

import java.io.Serializable;

/**
 * @author ZhouShuang
 * @version 17
 * @Title
 * @date 2025/6/11 下午4:26
 */
public class Employee implements Serializable {
    private String empNo;
    private String empName;
    private String empPost;
    private double empSalary;

    public Employee(){}

    public Employee(String empNo, String empName, String empPost, double empSalary) {
        this.empNo = empNo;
        this.empName = empName;
        this.empPost = empPost;
        this.empSalary = empSalary;
    }

    public String getEmpNo() {
        return empNo;
    }

    public void setEmpNo(String empNo) {
        this.empNo = empNo;
    }

    public String getEmpName() {
        return empName;
    }

    public void setEmpName(String empName) {
        this.empName = empName;
    }

    public String getEmpPost() {
        return empPost;
    }

    public void setEmpPost(String empPost) {
        this.empPost = empPost;
    }

    public double getEmpSalary() {
        return empSalary;
    }

    public void setEmpSalary(double empSalary) {
        this.empSalary = empSalary;
    }

    public void showInfo(){
        System.out.println("员工工号：" + empNo + ", 姓名：" + empName);
        System.out.println("员工职位：" + empPost + ", 工资：" + empSalary);
    }
}
